/**
 * Copyright (c) 2017, Alex. All rights reserved.
 */
package com.oschina.bottle.common.exception;

/**
 * 扩展异常信息，增加一个code
 *
 * @author <a href="mailto:zhongchao@gegejia.com">zhong</a>
 * @version 1.0 2017/9/27
 * @since 1.0
 */
public class BaseException extends RuntimeException {

    public BaseException() {
        super();
    }

    public BaseException(String message) {
        super(message);
    }

    public BaseException(String messageTemplate, Object... params) {
        super(String.format(messageTemplate, params));
    }

    public BaseException(Throwable cause) {
        super(cause);
    }

    public BaseException(Throwable cause, String message) {
        super(message, cause);
    }

    public BaseException(Throwable cause, String messageTemplate, Object... params) {
        super(String.format(messageTemplate, params), cause);
    }

}
